package ltd.jdsoft.cute.channel.model;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

/**
 * 机构允许使用的通道配置
 * 
 * @author zhengzhq
 *
 */
@Alias("OrgChannelConfig")
public class OrgChannelConfig implements Serializable {

  private static final long serialVersionUID = 743981380908662394L;
  // 主键
  private long id;
  // 机构id
  private long orgId;
  // 通道id，如果该值为-1，那么代表可以调用全部的通道
  private long channelId;
  // 通道类型，与Channel表的type对应
  private int type;
  // 权重
  private int weight;

  // 全部通道
  public static final int ALL_CHANNEL = -1;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getOrgId() {
    return orgId;
  }

  public void setOrgId(long orgId) {
    this.orgId = orgId;
  }

  public long getChannelId() {
    return channelId;
  }

  public void setChannelId(long channelId) {
    this.channelId = channelId;
  }

  public int getType() {
    return type;
  }

  public void setType(int type) {
    this.type = type;
  }

  public int getWeight() {
    return weight;
  }

  public void setWeight(int weight) {
    this.weight = weight;
  }
}
